package com.runshu.newsmartark.dbutil;

import androidx.room.TypeConverter;

import java.sql.Date;

/**
 * Demo class
 *
 * @author yu
 * @date 12/11/20
 * @decs：
 */

public class Converter {

    @TypeConverter
    public Date fromTimestamp(Long aLong)  {
        if (aLong ==null){
            return null;
        }else {
            return new Date(aLong);
        }

    }



}